import { App } from "vue";
import { RouterOptions, createRouter, createWebHistory } from "vue-router";
import { routes } from "@/routes/config";

const options: RouterOptions = {
  history: createWebHistory("/h5/ieltsTest/"),
  routes,
};

const router = createRouter(options);

export function setupRouter(app: App) {
  app.use(router);
}

export default router;
